package com.ruoyi.record.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.record.mapper.RemediationRecordMapper;
import com.ruoyi.record.domain.RemediationRecord;
import com.ruoyi.record.service.IRemediationRecordService;

/**
 * 隐患治理记录Service业务层处理
 * 
 * @author zolet
 * @date 2025-05-06
 */
@Service
public class RemediationRecordServiceImpl implements IRemediationRecordService 
{
    @Autowired
    private RemediationRecordMapper remediationRecordMapper;

    /**
     * 查询隐患治理记录
     * 
     * @param id 隐患治理记录主键
     * @return 隐患治理记录
     */
    @Override
    public RemediationRecord selectRemediationRecordById(Long id)
    {
        return remediationRecordMapper.selectRemediationRecordById(id);
    }

    /**
     * 查询隐患治理记录列表
     * 
     * @param remediationRecord 隐患治理记录
     * @return 隐患治理记录
     */
    @Override
    public List<RemediationRecord> selectRemediationRecordList(RemediationRecord remediationRecord)
    {
        return remediationRecordMapper.selectRemediationRecordList(remediationRecord);
    }

    /**
     * 新增隐患治理记录
     * 
     * @param remediationRecord 隐患治理记录
     * @return 结果
     */
    @Override
    public int insertRemediationRecord(RemediationRecord remediationRecord)
    {
        return remediationRecordMapper.insertRemediationRecord(remediationRecord);
    }

    /**
     * 修改隐患治理记录
     * 
     * @param remediationRecord 隐患治理记录
     * @return 结果
     */
    @Override
    public int updateRemediationRecord(RemediationRecord remediationRecord)
    {
        return remediationRecordMapper.updateRemediationRecord(remediationRecord);
    }

    /**
     * 批量删除隐患治理记录
     * 
     * @param ids 需要删除的隐患治理记录主键
     * @return 结果
     */
    @Override
    public int deleteRemediationRecordByIds(Long[] ids)
    {
        return remediationRecordMapper.deleteRemediationRecordByIds(ids);
    }

    /**
     * 删除隐患治理记录信息
     * 
     * @param id 隐患治理记录主键
     * @return 结果
     */
    @Override
    public int deleteRemediationRecordById(Long id)
    {
        return remediationRecordMapper.deleteRemediationRecordById(id);
    }
}
